/**
 * 前端和后端请求类型
 */
export type RequestCommands =
  | "message"
  | "get-setting-list"
  | "set-setting-list"
  | "get-setting-data"
  | "set-setting-data"
  | "get-column-headers"
  | "set-column-headers";

/**
 * 服务对象类别
 */
export type ServiceType = "global" | "sql-builder";

/**
 * 用于向后端传递数据
 */
export interface Transmission {
  /**
   * 传递的命令类型
   */
  readonly command: RequestCommands;

  /**
   * 服务对象类别
   */
  readonly service: ServiceType;

  /**
   * 传输的数据体
   */
  readonly data?: unknown;
}
